<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/11/9
  Time: 10:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%--
    jsp四个作用域对象
        application   全局  整个web应用
        request     一次请求
        session     一次会话
        pageContext 当前页面

    servlet3个域对象
        ServletContext
        request
        session

--%>
<%
    //添加值
    application.setAttribute("name", "zhangsan");

    //在set就是替换
    application.setAttribute("name", "李四");

    //移除
    application.removeAttribute("name");

%>
</body>
</html>
